﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LeanEngine.Data.Linq.Language
{
    internal sealed class TakeToken : IQueryToken
    {
        #region PropertyInfo Members

        public int Quantity { get; set; }

        public bool UseDefault { get; set; }

        #endregion

        #region IQueryToken Members

        public string GetStatement()
        {
            return "TOP " + Quantity.ToString();
        }

        #endregion
    }
}
